package com.adam.design.a01abstractfactory.aliyun.product;

import com.adam.design.a01abstractfactory.factory.product.OssImage;

public class AliyunOssImage implements OssImage {

    private byte[] bytes;

    public AliyunOssImage(byte[] bytes,String watermark,boolean trantsparent){
        this.bytes = bytes;
        System.out.println("图片已经上次xxx.com");
        System.out.println("图片像素压缩成xx");
        System.out.println("图片已经添加水印");
        System.out.println("图片已经增强");

    }



    @Override
    public String getThumb() {
        return "www.aliyun/xx.jpg";
    }

    @Override
    public String getWatermark() {
        return "www.aliyun/watermark";
    }

    @Override
    public String getEnhance() {
        return "www.aliyun/enhace";
    }
}
